package com.android.SummerSchoolProject;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class SummerSchoolProjectActivity extends Activity {	
	private Button btnSampler, btnDj;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        btnSampler = (Button) findViewById(R.id.btnSampler);
        btnDj = (Button) findViewById(R.id.btnDj);
        
        btnDj.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                Intent myIntent = new Intent(view.getContext(), DJConsole.class);
                startActivityForResult(myIntent, 0);
            }

        });
        btnSampler.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                Intent myIntent = new Intent(view.getContext(), Sampler.class);
                startActivityForResult(myIntent, 1);
            }

        });
    }
}